import httpInstance from '@/utils/http'

// 获取商品详情
export const getDetail = (id) => httpInstance.get('/goods',{params:{id}})

// 获取商品热榜
export const fetchHotGoodsAPI = ({ id, type, limit = 3 }) => {
  return httpInstance({
    url:'/goods/hot',
    params:{
      id,
      type,
      limit
    }
  })
}
